/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx.mapper;

import cn.webrx.cn.webrx.entit.Student;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
import java.util.Map;

/**
 * <p>Project: mybatis2021 - StudentMapper
 * <p>Powered by webrx On 2021-07-14 09:37:06
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 15
 */
public interface StudentMapper {

    public List<Map<String,Object>> query(String w);
    public List<Map<String,Object>> query();

    @Select("select * from t_student")
    public List<Map<String,Object>> myByPage();

    public int count();
    public int count(String w);

    public List<Map<String, Object>> page();
    public List<Map<String, Object>> page(@Param("start") int start, @Param("pagesize") int pagesize);

    @Select("select id,name from t_student")
    public List<Map<String, Object>> page2(Map<String,Object> map, RowBounds rows);

    public List<Student> queryById(int id);
}
